#ifndef __ITERATIONS_NO_OMP_H
#define __ITERATIONS_NO_OMP_H

long iterate_no_omp(long iterCount)
{
	////////////////////////////////////////
	int workTime=GetTickCount();

	double iterSum=0;
	printf("Beginning iteration...\n");

	for (long i=0; i<iterCount;i++)
		iterSum+=func(i);
	////////////////////////////////////////

	//Print message and exit
	printf("Iteration complete!\n");
	printf("\nResult = %f\n",iterSum);
	workTime=GetTickCount() - workTime;
	printf("Work time = %d\n",workTime);

	printf("\nPress any key to EXIT.\n");
	getch();
	return iterSum;	
}

#endif